package com.sx.jys.ui.adapter

import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter
import com.sx.jys.R
import com.sx.jys.app.framework.DiffUtilCallbacks
import com.sx.jys.app.net.bean.OrderBean
import com.sx.jys.databinding.ItemDetailListBinding

class ItemDetailAdapter(context: Context) :
    SimpleDataBindingAdapter<OrderBean, ItemDetailListBinding>(
        context,
        R.layout.item_detail_list, DiffUtilCallbacks().getItemCallBack()
    ) {
    override fun onBindItem(
        binding: ItemDetailListBinding,
        item: OrderBean,
        holder: RecyclerView.ViewHolder
    ) {
        binding.data = item
    }
}